package com.javaee6.liimp.model;

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class ComplaininfoExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ComplaininfoExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andComplainidIsNull() {
            addCriterion("complainId is null");
            return (Criteria) this;
        }

        public Criteria andComplainidIsNotNull() {
            addCriterion("complainId is not null");
            return (Criteria) this;
        }

        public Criteria andComplainidEqualTo(Integer value) {
            addCriterion("complainId =", value, "complainid");
            return (Criteria) this;
        }

        public Criteria andComplainidNotEqualTo(Integer value) {
            addCriterion("complainId <>", value, "complainid");
            return (Criteria) this;
        }

        public Criteria andComplainidGreaterThan(Integer value) {
            addCriterion("complainId >", value, "complainid");
            return (Criteria) this;
        }

        public Criteria andComplainidGreaterThanOrEqualTo(Integer value) {
            addCriterion("complainId >=", value, "complainid");
            return (Criteria) this;
        }

        public Criteria andComplainidLessThan(Integer value) {
            addCriterion("complainId <", value, "complainid");
            return (Criteria) this;
        }

        public Criteria andComplainidLessThanOrEqualTo(Integer value) {
            addCriterion("complainId <=", value, "complainid");
            return (Criteria) this;
        }

        public Criteria andComplainidIn(List<Integer> values) {
            addCriterion("complainId in", values, "complainid");
            return (Criteria) this;
        }

        public Criteria andComplainidNotIn(List<Integer> values) {
            addCriterion("complainId not in", values, "complainid");
            return (Criteria) this;
        }

        public Criteria andComplainidBetween(Integer value1, Integer value2) {
            addCriterion("complainId between", value1, value2, "complainid");
            return (Criteria) this;
        }

        public Criteria andComplainidNotBetween(Integer value1, Integer value2) {
            addCriterion("complainId not between", value1, value2, "complainid");
            return (Criteria) this;
        }

        public Criteria andComplainerphoneIsNull() {
            addCriterion("complainerPhone is null");
            return (Criteria) this;
        }

        public Criteria andComplainerphoneIsNotNull() {
            addCriterion("complainerPhone is not null");
            return (Criteria) this;
        }

        public Criteria andComplainerphoneEqualTo(Long value) {
            addCriterion("complainerPhone =", value, "complainerphone");
            return (Criteria) this;
        }

        public Criteria andComplainerphoneNotEqualTo(Long value) {
            addCriterion("complainerPhone <>", value, "complainerphone");
            return (Criteria) this;
        }

        public Criteria andComplainerphoneGreaterThan(Long value) {
            addCriterion("complainerPhone >", value, "complainerphone");
            return (Criteria) this;
        }

        public Criteria andComplainerphoneGreaterThanOrEqualTo(Long value) {
            addCriterion("complainerPhone >=", value, "complainerphone");
            return (Criteria) this;
        }

        public Criteria andComplainerphoneLessThan(Long value) {
            addCriterion("complainerPhone <", value, "complainerphone");
            return (Criteria) this;
        }

        public Criteria andComplainerphoneLessThanOrEqualTo(Long value) {
            addCriterion("complainerPhone <=", value, "complainerphone");
            return (Criteria) this;
        }

        public Criteria andComplainerphoneIn(List<Long> values) {
            addCriterion("complainerPhone in", values, "complainerphone");
            return (Criteria) this;
        }

        public Criteria andComplainerphoneNotIn(List<Long> values) {
            addCriterion("complainerPhone not in", values, "complainerphone");
            return (Criteria) this;
        }

        public Criteria andComplainerphoneBetween(Long value1, Long value2) {
            addCriterion("complainerPhone between", value1, value2, "complainerphone");
            return (Criteria) this;
        }

        public Criteria andComplainerphoneNotBetween(Long value1, Long value2) {
            addCriterion("complainerPhone not between", value1, value2, "complainerphone");
            return (Criteria) this;
        }

        public Criteria andComplaindateIsNull() {
            addCriterion("complainDate is null");
            return (Criteria) this;
        }

        public Criteria andComplaindateIsNotNull() {
            addCriterion("complainDate is not null");
            return (Criteria) this;
        }

        public Criteria andComplaindateEqualTo(Date value) {
            addCriterion("complainDate =", value, "complaindate");
            return (Criteria) this;
        }

        public Criteria andComplaindateNotEqualTo(Date value) {
            addCriterion("complainDate <>", value, "complaindate");
            return (Criteria) this;
        }

        public Criteria andComplaindateGreaterThan(Date value) {
            addCriterion("complainDate >", value, "complaindate");
            return (Criteria) this;
        }

        public Criteria andComplaindateGreaterThanOrEqualTo(Date value) {
            addCriterion("complainDate >=", value, "complaindate");
            return (Criteria) this;
        }

        public Criteria andComplaindateLessThan(Date value) {
            addCriterion("complainDate <", value, "complaindate");
            return (Criteria) this;
        }

        public Criteria andComplaindateLessThanOrEqualTo(Date value) {
            addCriterion("complainDate <=", value, "complaindate");
            return (Criteria) this;
        }

        public Criteria andComplaindateIn(List<Date> values) {
            addCriterion("complainDate in", values, "complaindate");
            return (Criteria) this;
        }

        public Criteria andComplaindateNotIn(List<Date> values) {
            addCriterion("complainDate not in", values, "complaindate");
            return (Criteria) this;
        }

        public Criteria andComplaindateBetween(Date value1, Date value2) {
            addCriterion("complainDate between", value1, value2, "complaindate");
            return (Criteria) this;
        }

        public Criteria andComplaindateNotBetween(Date value1, Date value2) {
            addCriterion("complainDate not between", value1, value2, "complaindate");
            return (Criteria) this;
        }

        public Criteria andComplaintypeIsNull() {
            addCriterion("complainType is null");
            return (Criteria) this;
        }

        public Criteria andComplaintypeIsNotNull() {
            addCriterion("complainType is not null");
            return (Criteria) this;
        }

        public Criteria andComplaintypeEqualTo(String value) {
            addCriterion("complainType =", value, "complaintype");
            return (Criteria) this;
        }

        public Criteria andComplaintypeNotEqualTo(String value) {
            addCriterion("complainType <>", value, "complaintype");
            return (Criteria) this;
        }

        public Criteria andComplaintypeGreaterThan(String value) {
            addCriterion("complainType >", value, "complaintype");
            return (Criteria) this;
        }

        public Criteria andComplaintypeGreaterThanOrEqualTo(String value) {
            addCriterion("complainType >=", value, "complaintype");
            return (Criteria) this;
        }

        public Criteria andComplaintypeLessThan(String value) {
            addCriterion("complainType <", value, "complaintype");
            return (Criteria) this;
        }

        public Criteria andComplaintypeLessThanOrEqualTo(String value) {
            addCriterion("complainType <=", value, "complaintype");
            return (Criteria) this;
        }

        public Criteria andComplaintypeLike(String value) {
            addCriterion("complainType like", value, "complaintype");
            return (Criteria) this;
        }

        public Criteria andComplaintypeNotLike(String value) {
            addCriterion("complainType not like", value, "complaintype");
            return (Criteria) this;
        }

        public Criteria andComplaintypeIn(List<String> values) {
            addCriterion("complainType in", values, "complaintype");
            return (Criteria) this;
        }

        public Criteria andComplaintypeNotIn(List<String> values) {
            addCriterion("complainType not in", values, "complaintype");
            return (Criteria) this;
        }

        public Criteria andComplaintypeBetween(String value1, String value2) {
            addCriterion("complainType between", value1, value2, "complaintype");
            return (Criteria) this;
        }

        public Criteria andComplaintypeNotBetween(String value1, String value2) {
            addCriterion("complainType not between", value1, value2, "complaintype");
            return (Criteria) this;
        }

        public Criteria andInfostatusIsNull() {
            addCriterion("infoStatus is null");
            return (Criteria) this;
        }

        public Criteria andInfostatusIsNotNull() {
            addCriterion("infoStatus is not null");
            return (Criteria) this;
        }

        public Criteria andInfostatusEqualTo(String value) {
            addCriterion("infoStatus =", value, "infostatus");
            return (Criteria) this;
        }

        public Criteria andInfostatusNotEqualTo(String value) {
            addCriterion("infoStatus <>", value, "infostatus");
            return (Criteria) this;
        }

        public Criteria andInfostatusGreaterThan(String value) {
            addCriterion("infoStatus >", value, "infostatus");
            return (Criteria) this;
        }

        public Criteria andInfostatusGreaterThanOrEqualTo(String value) {
            addCriterion("infoStatus >=", value, "infostatus");
            return (Criteria) this;
        }

        public Criteria andInfostatusLessThan(String value) {
            addCriterion("infoStatus <", value, "infostatus");
            return (Criteria) this;
        }

        public Criteria andInfostatusLessThanOrEqualTo(String value) {
            addCriterion("infoStatus <=", value, "infostatus");
            return (Criteria) this;
        }

        public Criteria andInfostatusLike(String value) {
            addCriterion("infoStatus like", value, "infostatus");
            return (Criteria) this;
        }

        public Criteria andInfostatusNotLike(String value) {
            addCriterion("infoStatus not like", value, "infostatus");
            return (Criteria) this;
        }

        public Criteria andInfostatusIn(List<String> values) {
            addCriterion("infoStatus in", values, "infostatus");
            return (Criteria) this;
        }

        public Criteria andInfostatusNotIn(List<String> values) {
            addCriterion("infoStatus not in", values, "infostatus");
            return (Criteria) this;
        }

        public Criteria andInfostatusBetween(String value1, String value2) {
            addCriterion("infoStatus between", value1, value2, "infostatus");
            return (Criteria) this;
        }

        public Criteria andInfostatusNotBetween(String value1, String value2) {
            addCriterion("infoStatus not between", value1, value2, "infostatus");
            return (Criteria) this;
        }

        public Criteria andDisposedateIsNull() {
            addCriterion("disposeDate is null");
            return (Criteria) this;
        }

        public Criteria andDisposedateIsNotNull() {
            addCriterion("disposeDate is not null");
            return (Criteria) this;
        }

        public Criteria andDisposedateEqualTo(Date value) {
            addCriterion("disposeDate =", value, "disposedate");
            return (Criteria) this;
        }

        public Criteria andDisposedateNotEqualTo(Date value) {
            addCriterion("disposeDate <>", value, "disposedate");
            return (Criteria) this;
        }

        public Criteria andDisposedateGreaterThan(Date value) {
            addCriterion("disposeDate >", value, "disposedate");
            return (Criteria) this;
        }

        public Criteria andDisposedateGreaterThanOrEqualTo(Date value) {
            addCriterion("disposeDate >=", value, "disposedate");
            return (Criteria) this;
        }

        public Criteria andDisposedateLessThan(Date value) {
            addCriterion("disposeDate <", value, "disposedate");
            return (Criteria) this;
        }

        public Criteria andDisposedateLessThanOrEqualTo(Date value) {
            addCriterion("disposeDate <=", value, "disposedate");
            return (Criteria) this;
        }

        public Criteria andDisposedateIn(List<Date> values) {
            addCriterion("disposeDate in", values, "disposedate");
            return (Criteria) this;
        }

        public Criteria andDisposedateNotIn(List<Date> values) {
            addCriterion("disposeDate not in", values, "disposedate");
            return (Criteria) this;
        }

        public Criteria andDisposedateBetween(Date value1, Date value2) {
            addCriterion("disposeDate between", value1, value2, "disposedate");
            return (Criteria) this;
        }

        public Criteria andDisposedateNotBetween(Date value1, Date value2) {
            addCriterion("disposeDate not between", value1, value2, "disposedate");
            return (Criteria) this;
        }

        public Criteria andDisposeresultIsNull() {
            addCriterion("disposeResult is null");
            return (Criteria) this;
        }

        public Criteria andDisposeresultIsNotNull() {
            addCriterion("disposeResult is not null");
            return (Criteria) this;
        }

        public Criteria andDisposeresultEqualTo(String value) {
            addCriterion("disposeResult =", value, "disposeresult");
            return (Criteria) this;
        }

        public Criteria andDisposeresultNotEqualTo(String value) {
            addCriterion("disposeResult <>", value, "disposeresult");
            return (Criteria) this;
        }

        public Criteria andDisposeresultGreaterThan(String value) {
            addCriterion("disposeResult >", value, "disposeresult");
            return (Criteria) this;
        }

        public Criteria andDisposeresultGreaterThanOrEqualTo(String value) {
            addCriterion("disposeResult >=", value, "disposeresult");
            return (Criteria) this;
        }

        public Criteria andDisposeresultLessThan(String value) {
            addCriterion("disposeResult <", value, "disposeresult");
            return (Criteria) this;
        }

        public Criteria andDisposeresultLessThanOrEqualTo(String value) {
            addCriterion("disposeResult <=", value, "disposeresult");
            return (Criteria) this;
        }

        public Criteria andDisposeresultLike(String value) {
            addCriterion("disposeResult like", value, "disposeresult");
            return (Criteria) this;
        }

        public Criteria andDisposeresultNotLike(String value) {
            addCriterion("disposeResult not like", value, "disposeresult");
            return (Criteria) this;
        }

        public Criteria andDisposeresultIn(List<String> values) {
            addCriterion("disposeResult in", values, "disposeresult");
            return (Criteria) this;
        }

        public Criteria andDisposeresultNotIn(List<String> values) {
            addCriterion("disposeResult not in", values, "disposeresult");
            return (Criteria) this;
        }

        public Criteria andDisposeresultBetween(String value1, String value2) {
            addCriterion("disposeResult between", value1, value2, "disposeresult");
            return (Criteria) this;
        }

        public Criteria andDisposeresultNotBetween(String value1, String value2) {
            addCriterion("disposeResult not between", value1, value2, "disposeresult");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}